const redis = require('redis')
const client = redis.createClient()
client.on('connect', () => { 
  console.log('Redis连接成功') 
})
client.on('error', (err) => { 
  console.log(err) 
})
client.connect()
module.exports = client